listbox: set selected_row before emitting signal
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>
Tue, 1 Jan 2019 23:14:17 +0000 (01:14 +0200)
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>
Fri, 11 Jan 2019 11:19:28 +0000 (13:19 +0200)
commit1cd934e105d32c9c7654a7bb8015ec07d72eef4e
treea7b51045f96431d8062d56d6010bf4852addbfea
parentdc1d3824a2f6679c1c7c87f57463ff3baaffe2bc
listbox: set selected_row before emitting signal

Signal emittion was added in 6f857f87dcd9 commit and it seems that
this is only place where selected_row is set after emitting signal.

Because of this gtk_list_box_get_selected_row currently returns NULL
as selected row if selection mode is set to GTK_SELECTION_BROWSE.
gtk/gtklistbox.c